<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            background-color: black;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }
        main{
            width: 500px;
            height: 500px;
            position: relative;
            animation: move 3s linear infinite;
            transform-style: preserve-3d;
        }
        main div{
            width: 100%;
            height: 100%;
            position: absolute;
            opacity: 0.4;
        }

        img{
            width: 100%;
            height: 100%;
        }
        .font{
            transform: translateZ(250px);
        }
        .back{
            transform: translateZ(-250px);
        }
        .left{
            transform: translateX(-250px) rotateY(90deg);
        }
        .right{
            transform: translateX(250px) rotateY(90deg);
        }
        .top{
            transform: translateY(-250px) rotateX(90deg);
        }
        .bottom{
            transform: translateY(250px) rotateX(90deg);
        }
        main section{
            width: 50%;
            height: 50%;
            position: absolute;
            top: 25%;
            left: 25%;
        }
        .small_f{
            transform: translateZ(125px);
        }
        .small_b{
            transform: translateZ(-125px);
        }
        .small_l{
            transform: translateX(-125px) rotateY(90deg);
        }
        .small_r{
            transform: translateX(125px) rotateY(90deg);
        }
        .small_t{
            transform: translateY(-125px) rotateX(90deg);
        }
        .small_bottom{
            transform: translateY(125px) rotateX(90deg);
        }
        main:hover .font{
            transform: translateZ(400px);
        }
        main:hover .back{
            transform: translateZ(-400px);
        }
        main:hover .left{
            transform: translateX(-400px) rotateY(90deg);
        }
        main:hover .right{
            transform: translateX(400px) rotateY(90deg);
        }
        main:hover .top{
            transform: translateY(-400px) rotateX(90deg);
        }
        main:hover .bottom{
            transform: translateY(400px) rotateX(90deg);
        }
        @keyframes move{
            from{
                transform: rotateX(0) rotateY(0);
            }
            to{
                transform: rotateX(360deg) rotateY(360deg);
            }
        }
    </style>
</head>
<body>
    <main>
        <div class="font"><img src="./1.jpg" alt=""></div>
        <div class="back"><img src="./2.jpg" alt=""></div>
        <div class="left"><img src="./3.jpg" alt=""></div>
        <div class="right"><img src="./4.jpg" alt=""></div>
        <div class="top"><img src="./5.jpg" alt=""></div>
        <div class="bottom"><img src="./6.jpg" alt=""></div>

        <section class="small_f"><img src="./1.jpg" alt=""></section>
        <section class="small_b"><img src="./2.jpg" alt=""></section>
        <section class="small_l"><img src="./3.jpeg" alt=""></section>
        <section class="small_r"><img src="./4.jpg" alt=""></section>
        <section class="small_t"><img src="./5.jpg" alt=""></section>
        <section class="small_bottom"><img src="./6.jpg" alt=""></section>
    </main>
</body>
</html>